<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <script>
        window.onload = function() {

            var vm = new Vue({
                el: "#app",
                data: {
                    con: "标签包裹的内容",
                    hrefUrl: "http://www.itcast.cn",
                    inputContent: "按钮"
                },
                methods: {
                    fnAlert: function() {
                        alert('操作事件')
                    }
                },
            })
        }
    </script>
</head>

<body>
    <div id="app">
        <p>{{ con }}</p>
        <a v-bind:href="hrefUrl">百度链接</a>
        <input v-on:click="fnAlert" type="button" v-bind:value="inputContent">


    </div>

</body>

</html>